package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mallcloud.mall.common.core.constant.enums.mall.XGLEnum;
import com.mallcloud.mall.common.core.util.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "XglParkingRedeemSettingModel", description = "星光里停车兑换设置")
@Data
@TableName("ZHTC_HDSZ")
public class XglParkingRedeemSettingModel implements Serializable {
	private static final long serialVersionUID = 1L;

	@NotNull(message = "ID为空", groups = {ValidGroup.Update.class})
	@TableId(value = "TCTPPID", type = IdType.ASSIGN_ID)
	@ApiModelProperty("活动ID")
	private String activityId;

	@TableField("TCTPINAME")
	@ApiModelProperty("活动名称")
	private String activityName;

	@TableField("TCTPISTARTDATE")
	@ApiModelProperty("开始时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date startTime;

	@TableField("TCTPISENDDATE")
	@ApiModelProperty("结束时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date endTime;

	@TableField("TCTPMANAUNIT")
	@ApiModelProperty("活动公司")
	private String activityCompany;

	@TableField("TCTPMKT")
	@ApiModelProperty("活动门店")
	private String activityStore;

	@TableField("TCMFSC")
	@ApiModelProperty("免费时长")
	private Long freeDuration;

	@TableField("TCDHJF")
	@ApiModelProperty("抵扣积分")
	private Long deductionPoints;

	/**
	 * {@link XGLEnum.RedeemSettingStatusEnum}
	 */
	@TableField("TCDSTATUS")
	@ApiModelProperty("活动状态")
	private String status;

}
